package abg.core.domain.db;

import abg.core.common.mybatis.config.FieldInsert;
import abg.core.common.mybatis.config.FieldSet;
import abg.core.common.mybatis.config.FieldUpdate;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Table;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.io.Serializable;
import java.util.ArrayList;

/**
 * 系统消息
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Table(value = "sys_msg", onUpdate = FieldUpdate.class, onInsert = FieldInsert.class, onSet = FieldSet.class)
public class SysMsg extends ZBEntity implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    //标题
    private String title;

    //内容
    private String content;

    //        '0'	内容类型；0文字；1文章；默认0；
    private String contentType;

    //    分类ID
    private String msgTypeId;

    //    阅读量
    private String readCount;

    //    文章ID；文章作为指引内容；默认为NULL
    private String articleId;


    //参数
    @Column(ignore = true)
    private String roleIds;

    //参数
    @Column(ignore = true)
    private String userIds;

    //参数
    @Column(ignore = true)
    private String msgTypeName;

    //参数
    @Column(ignore = true)
    private String isRead;

    //参数
    @Column(ignore = true)
    private ArrayList<String> sendToUserIds;

}
